﻿namespace Cngot.Extensions.Logger
{
    public static class LineNumberLoggerConfigurationExtensions
    {
        public static LoggerConfiguration WithLineNumber(this LoggerEnrichmentConfiguration enrichmentConfiguration)
        {
            if (enrichmentConfiguration == null)
                throw new ArgumentNullException(nameof(enrichmentConfiguration));

            return enrichmentConfiguration.With<LineNumberEnricher>();
        }
    }
}